﻿<%@ page language="C#" autoeventwireup="true" inherits="Admin_ThemeList, App_Web_themelist.aspx.fdf7a39c" %>

<%@ Register Assembly="AspNetPager" Namespace="Wuqi.Webdiyer" TagPrefix="webdiyer" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
    <title>无标题页</title>
    <link href="../css/main-admin.css" rel="stylesheet" type="text/css" />

    <script src="../Jscript/jquery-1.3.2.min.js" type="text/javascript"></script>

    <script src="../Jscript/page.js" type="text/javascript"></script>

</head>
<body>

    <script src="../DatePicker/WdatePicker.js" type="text/javascript"></script>

    <form id="fid" runat="server">
    <div class="title">
        站内留言管理</div>
    <div style="color: #636;">
        留言时间：<input type="text" name="textfield" id="startdate" runat="server" onfocus="WdatePicker({skin:'blue'})"
            style="width: 100px; border: 1px solid #CCC; height: 15px; margin-right: 30px;" />
        至
        <input type="text" name="textfield" id="enddata" runat="server" onfocus="WdatePicker({skin:'blue'})"
            style="width: 100px; border: 1px solid #CCC; height: 15px; margin-right: 30px;" />
        关键字：
        <input type="text" name="textfield" id="kettxt" runat="server" style="width: 200px;
            border: 1px solid #CCC; height: 15px; margin-right: 30px;" />
        状态：<asp:DropDownList ID="list" runat="server">
            <asp:ListItem Text="所有" Value="">     </asp:ListItem>
            <asp:ListItem Text="已读" Value="1"></asp:ListItem>
            <asp:ListItem Text="未读" Value="0"></asp:ListItem>
        </asp:DropDownList>
        <asp:ImageButton ImageAlign="AbsMiddle" ID="okbtn" runat="server" ImageUrl="~/images/btn-search.gif"
            Width="68" Height="25" OnClick="okbtn_Click" />
        <a href="AddTheme.aspx" style="margin-left: 10px;">
            <img src="../images/btn-add-new-msg.gif" width="89" height="25" border="0" align="absmiddle" /></a></div>
    </div>
    <div class="trans-search-title" style="padding-top: 30px">
        <div class="trans-sepadd-name">
            留言对象</div>
        <div class="trans-sepadd-address" style="width: 340px">
            题目</div>
        <div class="trans-sepadd-name">
            创建者</div>
        <div class="trans-sepadd-city" style="width: 150px">
            更新时间</div>
        <div class="trans-sepadd-state">
            员工状态</div>
        <div class="trans-sepadd-space">
            &nbsp;</div>
    </div>
    <asp:Repeater ID="NewListGv" runat="server">
        <ItemTemplate>
            <%# ((Container.ItemIndex + 1) % 2) == 0 ? "<div    class='trans-search-line result-bg'>" : "<div    class='trans-search-line'>"%>
          <div class="trans-sepadd-name">
                &nbsp<%# Eval("CustomID").ToString()=="0"?"所有客户": new BLL.PublicSqlService().GetWords("TblUserInfo","AccountNo","UID="+Eval("postid").ToString())%></div>
            <div class="trans-sepadd-address" style="width: 350px">
                <a href='ThemeShow.aspx?id=<%#Eval("ID") %>'>
                    <%#Ysb.Components.StrHelper.GetFirstString(Eval("Theme").ToString(),40)%></a>&nbsp;
            </div>
          <div class="trans-sepadd-name"><%# Eval("CustomID").ToString()=="0"?"所有客户": new BLL.PublicSqlService().GetWords("TblUserInfo","TrueName","UID="+Eval("postid").ToString())%></div>
            <div class="trans-sepadd-city" style="width: 150px">
                <%# Eval("UpdateTime")%></div>
            <div class="trans-sepadd-state">
                <%# Convert.ToBoolean(Convert.ToInt32(Eval("UPEXIsRead")) == 1) ? "已读" : "未读"%></div>
            <div class="trans-sepadd-space">
                <img src="../images/icon-del.png" width="16" height="16" onclick="ToDel('themlist','<%#Eval("ID")%>','')" /></div>
            </div>
        </ItemTemplate>
    </asp:Repeater>
    <div  style="text-align:center; padding-top:10px">
    
    <webdiyer:AspNetPager ID="NewsPage" runat="server" AlwaysShow="True" CustomInfoHTML="第%CurrentPageIndex%页，共%PageCount%页，每页%PageSize%条"
        OnPageChanged="NewsPage_PageChanged" PageIndexBoxType="TextBox" ShowPageIndexBox="Always"
        SubmitButtonText="" TextAfterPageIndexBox="" TextBeforePageIndexBox="跳页" Width="800px"
        FirstPageText="&lt;img src=&quot;../img/btn-first.jpg&quot; width=&quot;46&quot; height=&quot;21&quot; align=&quot;absmiddle&quot; /&gt;"
        LastPageText="&lt;img src=&quot;../img/btn-last.jpg&quot; width=&quot;46&quot; height=&quot;21&quot; align=&quot;absmiddle&quot; /&gt;"
        NextPageText="&lt;img src=&quot;../img/btn-next.jpg&quot; width=&quot;32&quot; height=&quot;21&quot; align=&quot;absmiddle&quot; /&gt;"
        PrevPageText="&lt;img src=&quot;../img/btn-prev.jpg&quot; width=&quot;32&quot; height=&quot;21&quot; align=&quot;absmiddle&quot; /&gt;"
        SubmitButtonClass="showsb" PageIndexBoxClass="pageindexbox" PageSize="20">
    </webdiyer:AspNetPager>    </div>
    </form>
</body>
</html>
